package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 模板管理对象 grid_cmd_templates
 *
 * @author ruoyi
 * @date 2022-01-08
 */
public class GridCmdTemplates extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 模板ID */
    private Integer templatesId;

    /** 模板名称 */
    @Excel(name = "模板名称")
    private String templatesName;

    /** 模式 （0cmd 1shell） */
    @Excel(name = "模式 ", readConverterExp = "0=cmd,1=shell")
    private Integer model;

    /** 命令模板 */
    @Excel(name = "命令模板")
    private String exeCmd;

    /** 公告状态（0正常 1关闭） */
    @Excel(name = "公告状态", readConverterExp = "0=正常,1=关闭")
    private String status;

    /** shell */
    @Excel(name = "shell")
    private String exeShell;

    public void setTemplatesId(Integer templatesId)
    {
        this.templatesId = templatesId;
    }

    public Integer getTemplatesId()
    {
        return templatesId;
    }
    public void setTemplatesName(String templatesName)
    {
        this.templatesName = templatesName;
    }

    public String getTemplatesName()
    {
        return templatesName;
    }
    public void setModel(Integer model)
    {
        this.model = model;
    }

    public Integer getModel()
    {
        return model;
    }
    public void setExeCmd(String exeCmd)
    {
        this.exeCmd = exeCmd;
    }

    public String getExeCmd()
    {
        return exeCmd;
    }
    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }
    public void setExeShell(String exeShell)
    {
        this.exeShell = exeShell;
    }

    public String getExeShell()
    {
        return exeShell;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("templatesId", getTemplatesId())
                .append("templatesName", getTemplatesName())
                .append("model", getModel())
                .append("exeCmd", getExeCmd())
                .append("status", getStatus())
                .append("createBy", getCreateBy())
                .append("exeShell", getExeShell())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .toString();
    }
}
